<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>获取手机号 v1.6.0 - uniapp 安卓电话通话监听原生插件</title>
    
    
</head>
<body>
<div id="root"></div>
<script type="application/payload+json">
{"id":"W1DPl5","summary":[{"title":"使用说明","articles":[{"title":"使用方法","ref":"使用说明\/使用方法.md","path":"shiyongshuoming\/shiyongfangfa.html","metadata":{"ctime":"2024-01-09T19:44:46+08:00","mtime":"2024-04-27T14:26:33+08:00"}},{"title":"更新日志","ref":"使用说明\/更新日志.md","path":"shiyongshuoming\/gengxinrizhi.html","metadata":{"ctime":"2024-01-09T19:44:46+08:00","mtime":"2024-04-25T16:23:29+08:00"}},{"title":"常见问题","ref":"使用说明\/常见问题.md","path":"shiyongshuoming\/changjianwenti.html","metadata":{"ctime":"2024-03-20T10:21:58+08:00","mtime":"2024-03-26T17:50:32+08:00"}}]},{"title":"插件方法","articles":[{"title":"检测是否开启通话自动录音","ref":"插件方法\/检测是否开启通话自动录音.md","path":"chajianfangfa\/jianceshifoukaiqitonghuazidongluyin.html","metadata":{"ctime":"2024-01-09T19:44:46+08:00","mtime":"2024-01-09T19:44:46+08:00"}},{"title":"跳转到开启通话自动录音页面","ref":"插件方法\/跳转到开启通话自动录音页面.md","path":"chajianfangfa\/tiaozhuandaokaiqitonghuazidongluyinyemian.html","metadata":{"ctime":"2024-01-09T19:44:46+08:00","mtime":"2024-01-09T19:44:46+08:00"}},{"title":"获取所有的录音文件","ref":"插件方法\/获取所有的录音文件.md","path":"chajianfangfa\/huoqusuoyoudeluyinwenjian.html","metadata":{"ctime":"2024-01-09T19:44:46+08:00","mtime":"2024-01-26T18:29:06+08:00"}},{"title":"根据条件获取录音文件 v1.7.0","ref":"插件方法\/根据条件获取录音文件.md","path":"chajianfangfa\/genjutiaojianhuoquluyinwenjian.html","metadata":{"ctime":"2024-03-26T17:50:32+08:00","mtime":"2024-03-26T17:50:32+08:00"}},{"title":"注册电话监听","ref":"插件方法\/注册电话监听.md","path":"chajianfangfa\/zhucedianhuajianting.html","metadata":{"ctime":"2024-01-09T19:44:46+08:00","mtime":"2024-03-06T15:43:32+08:00"}},{"title":"取消电话监听","ref":"插件方法\/取消电话监听.md","path":"chajianfangfa\/quxiaodianhuajianting.html","metadata":{"ctime":"2024-01-09T19:44:46+08:00","mtime":"2024-01-09T19:44:46+08:00"}},{"title":"挂断电话 v1.1.0","ref":"插件方法\/挂断电话.md","path":"chajianfangfa\/guaduandianhua.html","metadata":{"ctime":"2024-01-24T17:07:28+08:00","mtime":"2024-01-24T17:07:28+08:00"}},{"title":"获取所有通话记录 v1.2.0","ref":"插件方法\/获取所有通话记录.md","path":"chajianfangfa\/huoqusuoyoutonghuajilu.html","metadata":{"ctime":"2024-01-26T12:25:55+08:00","mtime":"2024-04-02T18:08:00+08:00"}},{"title":"根据条件获取通话记录 v1.4.0","ref":"插件方法\/根据条件获取通话记录.md","path":"chajianfangfa\/genjutiaojianhuoqutonghuajilu.html","metadata":{"ctime":"2024-02-29T16:59:57+08:00","mtime":"2024-04-02T18:08:00+08:00"}},{"title":"拨打电话 v1.3.0","ref":"插件方法\/拨打电话.md","path":"chajianfangfa\/bodadianhua.html","metadata":{"ctime":"2024-01-29T16:49:59+08:00","mtime":"2024-04-11T18:40:02+08:00"}},{"title":"注册短信监听 v1.4.0","ref":"插件方法\/注册短信监听.md","path":"chajianfangfa\/zhuceduanxinjianting.html","metadata":{"ctime":"2024-02-28T17:02:19+08:00","mtime":"2024-02-28T17:02:19+08:00"}},{"title":"取消短信监听 v1.4.0","ref":"插件方法\/取消短信监听.md","path":"chajianfangfa\/quxiaoduanxinjianting.html","metadata":{"ctime":"2024-02-28T17:02:19+08:00","mtime":"2024-02-28T17:02:19+08:00"}},{"title":"是否是双卡 v1.5.0","ref":"插件方法\/是否是双卡.md","path":"chajianfangfa\/shifoushishuangka.html","metadata":{"ctime":"2024-03-06T15:43:32+08:00","mtime":"2024-03-06T15:43:32+08:00"}},{"title":"获取手机号 v1.6.0","ref":"插件方法\/获取手机号.md","path":"chajianfangfa\/huoqushoujihao.html","metadata":{"ctime":"2024-03-18T12:24:15+08:00","mtime":"2024-03-18T12:24:15+08:00"}},{"title":"移动文件 v1.6.0","ref":"插件方法\/移动文件.md","path":"chajianfangfa\/yidongwenjian.html"},{"title":"复制文件 v1.6.0","ref":"插件方法\/复制文件.md","path":"chajianfangfa\/fuzhiwenjian.html"},{"title":"获取当前通话状态 v1.7.0","ref":"插件方法\/获取当前通话状态.md","path":"chajianfangfa\/huoqudangqiantonghuazhuangtai.html"},{"title":"检查“所有文件”访问权限 v1.7.0","ref":"插件方法\/检查所有文件访问权限v1.7.0.md","path":"chajianfangfa\/jianchasuoyouwenjianfangwenquanxianv1.7.0.html"},{"title":"跳转到所有文件访问权限页面 v1.7.0","ref":"插件方法\/跳转到所有文件访问权限页面.md","path":"chajianfangfa\/tiaozhuandaosuoyouwenjianfangwenquanxianyemian.html"}]}],"config":{"title":"uniapp 安卓电话通话监听原生插件","themeConfig":{"navs":[{"title":"所有插件","url":"https:\/\/z7poo9xpe4.k.topthink.com\/@xzrng75p7j"}]},"plugins":["qrcode","copy-code","image-zoom","highlight"]},"file":{"path":"chajianfangfa\/huoqushoujihao.html","content":"## 方法名 `v1.6.0`\n`getPhoneNumber`\n\n## 权限\n* android.permission.READ_PHONE_STATE\n* android.permission.READ_SMS\n* android.permission.READ_PHONE_NUMBERS\n > 需要在manifest.json中勾选相应的权限\n\n## 用法\n\n* 用法如下：\n\n    ```\n    module.getPhoneNumber(res => {\n      console.log(res)\n    })\n    ```\n* 参数说明\n\n    无\n     \n\n## 回调\n\n* 示例\n\n    ```\n   {\n        \"data\": {\n            \"numbers\": [\n                {\n                    \"displayName\": \"CMCC\",\n                    \"mnc\": \"02\",\n                    \"mcc\": \"460\",\n                    \"carrierName\": \"中国移动\",\n                    \"number\": \"15912345678\",\n                    \"subId\": 2\n                },\n                {\n                    \"displayName\": \"中国电信\",\n                    \"mnc\": \"03\",\n                    \"mcc\": \"460\",\n                    \"carrierName\": \"中国电信\",\n                    \"number\": \"18012345678\",\n                    \"subId\": 1\n                }\n            ]\n        },\n        \"message\": \"\",\n        \"code\": 0\n    }\n    ```\n\n* 回调说明：\n\n    | 参数名 | 参数类型 | 参数描述 |\n    | --- | ---- | ---- |\n    | message | String | 消息提示 |\n    | data | Object | 数据对象 |\n    | data.numbers | Array | 手机号列表 |\n    | data.numbers.displayName | String| 显示名称 |\n    | data.numbers.mnc | String| 移动国家代码 |\n    | data.numbers.mcc | String| 移动网络代码 |\n    | data.numbers.carrierName | String| 运营商名称 |\n    | data.numbers.number | String| 手机号 |\n    | data.numbers.subId | Integer | 所在卡槽 |\n    | code | Integer | 返回类型，0.成功，其他：失败 |\n","meta":{"ctime":"2024-03-18T12:24:15+08:00","mtime":"2024-03-18T12:24:15+08:00"}},"lfs":{"url":"https:\/\/z7poo9xpe4.k.topthink.com\/lfs\/{oid}","files":{".topwrite\/assets\/安卓电话通话监听原生插件示例文件 v1.0.0.zip":"7612facf1508936adf74d1391b75f9c042bdc7c83a74630a750092ecbbc7a36b",".topwrite\/assets\/安卓电话通话监听原生插件示例文件 v1.5.0.zip":"cc1e7fc70d1b0d2dad89fffe2662bb97293c12aa519ac07ff3014131ebeeada1",".topwrite\/assets\/安卓电话通话监听原生插件示例文件 v1.7.0.zip":"a3caf11b3d4788542ecbda1bd84dba2790a4e96037dc4720715c5407ad4c6987"}},"options":{"poweredBy":{"name":"顶想云","link":"https:\/\/www.topthink.com"}}}
</script>

    <script src="../asset/lodash/lodash.min.js?v=4.17.21"></script>

    <script src="../asset/react/react.production.min.js?v=18.2.0"></script>

    <script src="../asset/react-dom/react-dom.production.min.js?v=18.2.0"></script>

    <script src="../asset/reader/index.js?v=1.0.71"></script>

    <script src="../asset/plugins/theme-default/index.js?v=1.0.30"></script>

    <script src="../asset/plugins/highlight/index.js?v=1.0.4"></script>

    <script src="../asset/plugins/knowledge/index.js?v=0.0.18"></script>

    <script src="../asset/plugins/image-zoom/index.js?v=0.0.1"></script>

    <script src="../asset/plugins/copy-code/index.js?v=0.0.2"></script>

    <script src="../asset/plugins/qrcode/index.js?v=0.0.1"></script>

    <script src="../asset/plugins/components/index.js?v=0.0.7"></script>

<script type="text/javascript">
    TopWrite.bootstrap();
</script>
</body>
</html>
